package com.gudaomai.ekproject.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.gudaomai.ekproject.common.EkBaseMapper;
import com.gudaomai.ekproject.entity.Role;

/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author zenghualu
 * @since 2017-06-26
 */
public interface RoleMapper extends EkBaseMapper<Role> {

	//通过角色名称获取角色
	@Select("select * from role where role_name=#{roleName}")
	public Role getRoleByName(@Param("roleName") String roleName);

}